package com.yxw.yx_hotel.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author liuxin
 * @date 2023.0913
 */
@EqualsAndHashCode(callSuper = false)
@Data
@ToString(callSuper=true)
@ApiModel(value="AddRoomDto", description="x宿舍新增Dto")
public class AddRoomDto implements Serializable {

    @ApiModelProperty(value = "宿舍ID")
    @NotNull(message = "宿舍ID不能为空")
    private Long roomId;

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "区域ID")
    @NotNull(message = "区域不能为空")
    private Long regionId;

    @ApiModelProperty(value = "区域名称")
    @NotBlank(message = "区域不能为空")
    private String regionName;

    @ApiModelProperty(value = "房号（房间名称）")
    @NotBlank(message = "房号不能为空")
    private String roomName;

    @ApiModelProperty(value = "床位数量")
    @NotNull(message = "床位数量不能为空")
    private Integer bedCnt;

    @ApiModelProperty(value = "物业费(元/月)")
    private Double wyFee;

    @ApiModelProperty(value="租金(元/月)")
    private Double rentFee;

    @ApiModelProperty(value="押金(元/床位)")
    private Double depositFee;

    @ApiModelProperty(value="退租日期")
    //@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String rendBackTime;

    @ApiModelProperty(value="门锁密码")
    //@NotBlank(message = "门锁密码不能为空")
    private String lockPwd;

    @ApiModelProperty(value="备注")
    private  String notes;

    @Valid
    @NotEmpty(message = "床位不能为空")
    @ApiModelProperty(value="床位")
    private List<AddRoomBedDto> bedList;
}
